home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xfuncs.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  58 lines

  1. /*
  2.  * $XConsortium: Xfuncs.h,v 1.8 91/04/17 09:27:52 rws Exp $
  3.  * 
  4.  * Copyright 1990 by the Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted, provided 
  8.  * that the above copyright notice appear in all copies and that both that 
  9.  * copyright notice and this permission notice appear in supporting 
  10.  * documentation, and that the name of M.I.T. not be used in advertising
  11.  * or publicity pertaining to distribution of the software without specific, 
  12.  * written prior permission. M.I.T. makes no representations about the 
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  */
  17.  
  18. #ifndef _XFUNCS_H_
  19. #define _XFUNCS_H_
  20.  
  21. #include <X11/Xosdefs.h>
  22.  
  23. #ifdef X_USEBFUNCS
  24. void bcopy();
  25. void bzero();
  26. int bcmp();
  27. #else
  28. #if (__STDC__ && !defined(X_NOT_STDC_ENV) && !defined(sun) && !defined(macII)) || defined(SVR4) || defined(hpux) || defined(_IBMR2)
  29. #include <string.h>
  30. #ifndef AMIGA
  31. #define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
  32. #define bzero(b,len) memset(b, 0, (size_t)(len))
  33. #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
  34. #endif /* AMIGA */
  35. #else
  36. #ifdef sgi
  37. #include <bstring.h>
  38. #else
  39. #ifdef SYSV
  40. #include <memory.h>
  41. #if defined(_XBCOPYFUNC) && !defined(macII)
  42. #define bcopy _XBCOPYFUNC
  43. #define _XNEEDBCOPYFUNC
  44. #endif
  45. void bcopy();
  46. #define bzero(b,len) memset(b, 0, len)
  47. #define bcmp(b1,b2,len) memcmp(b1, b2, len)
  48. #else /* bsd */
  49. void bcopy();
  50. void bzero();
  51. int bcmp();
  52. #endif /* SYSV */
  53. #endif /* sgi */
  54. #endif /* __STDC__ and relatives */
  55. #endif /* X_USEBFUNCS */
  56.  
  57. #endif /* _XFUNCS_H_ */
  58.